const { $Message } = require('../../iview/base/index');
Page({
  onLoad: function () {
    wx.showShareMenu({
      withShareTicket: true
    })
  },
  onReady: function () {
    this.welcome();
  },
  data: {
    current: 'homepage'
  },
  handleChange({ detail }) {
    this.setData({
      current: detail.key
    });
  },
  welcome() {
    $Message({
      content: '欢迎你的到来,和我们一起分享快乐吧~',
      duration: 6
    });
  },
});